# -*- coding: utf-8 -*-
# @Time    : 2024/11/25 10:13
# @Author  : xiangbo
# @Email   : xiangbo@163.com
# @File    : run.py
# @Software: PyCharm
import time
import unittest
from BeautifulReport import BeautifulReport
from config.config import CASES_PATH, REPORTS_PATH

runner = unittest.TextTestRunner()
discover = unittest.defaultTestLoader.discover(CASES_PATH, pattern="test*.py")
BeautifulReport(discover).report(
    description=u'CRM自动化测试',
    report_dir=REPORTS_PATH,
    filename=f"HD64-CRM-web自动化测试{time.strftime('%Y-%m-%d %H%M%S')}"
)
